#pragma once


#include "AiOleClientSite.h"

HRESULT CreateBrowser(const RECT* prcWnd, HWND hWndParent, CAiOleClientSite* pOleClientSite, IOleObject** pBrowserObjResult);

DWORD   AttachEventHandler(IOleObject* pBrowserObj, IDispatch* pEventSink);
HRESULT DetachEventHandler(IOleObject* pBrowserObj, DWORD dwCookie);

HWND    GetWebBrowserHWnd(IOleObject* pBrowserObj);